﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000579 RID: 1401
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FightTreasureDungeonMonsterScRsp : IMessage<FightTreasureDungeonMonsterScRsp>, IMessage, IEquatable<FightTreasureDungeonMonsterScRsp>, IDeepCloneable<FightTreasureDungeonMonsterScRsp>, IBufferMessage
	{
		// Token: 0x170011FC RID: 4604
		// (get) Token: 0x06003EF2 RID: 16114 RVA: 0x000ACE0B File Offset: 0x000AB00B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FightTreasureDungeonMonsterScRsp> Parser
		{
			get
			{
				return FightTreasureDungeonMonsterScRsp._parser;
			}
		}

		// Token: 0x170011FD RID: 4605
		// (get) Token: 0x06003EF3 RID: 16115 RVA: 0x000ACE12 File Offset: 0x000AB012
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FightTreasureDungeonMonsterScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170011FE RID: 4606
		// (get) Token: 0x06003EF4 RID: 16116 RVA: 0x000ACE24 File Offset: 0x000AB024
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FightTreasureDungeonMonsterScRsp.Descriptor;
			}
		}

		// Token: 0x06003EF5 RID: 16117 RVA: 0x000ACE2B File Offset: 0x000AB02B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightTreasureDungeonMonsterScRsp()
		{
		}

		// Token: 0x06003EF6 RID: 16118 RVA: 0x000ACE34 File Offset: 0x000AB034
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightTreasureDungeonMonsterScRsp(FightTreasureDungeonMonsterScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003EF7 RID: 16119 RVA: 0x000ACE80 File Offset: 0x000AB080
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightTreasureDungeonMonsterScRsp Clone()
		{
			return new FightTreasureDungeonMonsterScRsp(this);
		}

		// Token: 0x170011FF RID: 4607
		// (get) Token: 0x06003EF8 RID: 16120 RVA: 0x000ACE88 File Offset: 0x000AB088
		// (set) Token: 0x06003EF9 RID: 16121 RVA: 0x000ACE90 File Offset: 0x000AB090
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001200 RID: 4608
		// (get) Token: 0x06003EFA RID: 16122 RVA: 0x000ACE99 File Offset: 0x000AB099
		// (set) Token: 0x06003EFB RID: 16123 RVA: 0x000ACEA1 File Offset: 0x000AB0A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x06003EFC RID: 16124 RVA: 0x000ACEAA File Offset: 0x000AB0AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FightTreasureDungeonMonsterScRsp);
		}

		// Token: 0x06003EFD RID: 16125 RVA: 0x000ACEB8 File Offset: 0x000AB0B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FightTreasureDungeonMonsterScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.BattleInfo, other.BattleInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003EFE RID: 16126 RVA: 0x000ACF08 File Offset: 0x000AB108
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003EFF RID: 16127 RVA: 0x000ACF5D File Offset: 0x000AB15D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003F00 RID: 16128 RVA: 0x000ACF65 File Offset: 0x000AB165
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003F01 RID: 16129 RVA: 0x000ACF70 File Offset: 0x000AB170
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003F02 RID: 16130 RVA: 0x000ACFCC File Offset: 0x000AB1CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003F03 RID: 16131 RVA: 0x000AD024 File Offset: 0x000AB224
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FightTreasureDungeonMonsterScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003F04 RID: 16132 RVA: 0x000AD08C File Offset: 0x000AB28C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003F05 RID: 16133 RVA: 0x000AD098 File Offset: 0x000AB298
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 104U)
				{
					if (num != 122U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040018EB RID: 6379
		private static readonly MessageParser<FightTreasureDungeonMonsterScRsp> _parser = new MessageParser<FightTreasureDungeonMonsterScRsp>(() => new FightTreasureDungeonMonsterScRsp());

		// Token: 0x040018EC RID: 6380
		private UnknownFieldSet _unknownFields;

		// Token: 0x040018ED RID: 6381
		public const int RetcodeFieldNumber = 13;

		// Token: 0x040018EE RID: 6382
		private uint retcode_;

		// Token: 0x040018EF RID: 6383
		public const int BattleInfoFieldNumber = 15;

		// Token: 0x040018F0 RID: 6384
		private SceneBattleInfo battleInfo_;
	}
}
